package com.softWang.system.controller.vo.systemUsers;


import com.softWang.common.aop.annotation.DesensitizeCommon;
import com.softWang.common.aop.annotation.DesensitizeRegex;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel
public class SystemUserQueryAllResult {

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "用户名，最大长度为60位")
    //@DesensitizeCommon(suffixKeep = 1,prefixKeep = 1, replacer = "*")
    private String uname;


    @ApiModelProperty(value = "登录账户，最大长度为60位")
    private String loginName;

    @ApiModelProperty(value = "类型，(1.超级管理员，2.创建的普通管理员)")
    private Integer type;

    @ApiModelProperty(value = "所属部门id")
    private Long deptid;

    @ApiModelProperty(value = "状态，0:正常,1:停用")
    private Integer state;

    @ApiModelProperty(value = "手机号号码")
    @DesensitizeCommon(suffixKeep = 4,prefixKeep = 3, replacer = "*")
    private String tel;

    @ApiModelProperty(value = "性别，1:男;2:女;0:未知")
    private String sex;

    @ApiModelProperty(value = "邮箱")
    @DesensitizeRegex(regex = "(^.)[^@]*(@.*$)", replacer = "$1****$2")
    private String email;

    @ApiModelProperty(value = "用户头像")
    private Long avatar;

    @ApiModelProperty(value = "所属部门名称")
    private String deptName;

    @ApiModelProperty(value = "拥有角色名称")
    private String roleNames;

    @ApiModelProperty(value = "创建人")
    private String cuserName;

}
